package com.cloud.feign.controller;

import com.cloud.provider.client.ProviderClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FeignDemoController {


    @Autowired
    private ProviderClient providerClient;

    @GetMapping("/feign")
    public String feign(){
        return providerClient.hello();
    }
}
